const Koa = require('koa')
const app = new Koa()
const router = require('./router');
// 引入 koa-static
const middleware = require('./middleware');

const PORT = process.env.PORT || '5168'
middleware(app)
router(app)

// 使用中间件
app.listen(PORT)
console.log(`start-quick is starting at port ${PORT}`)